Skip to content

Conversation

@ZuseZ4
Copy link
Member

@ZuseZ4 ZuseZ4 commented Nov 20, 2025

One of my last steps in order to prepare autodiff on nightly was to upstream those benchmarks into r-l/r,
since they can now be part of our CI runs. Those are the first real-world testcases of a relevant size which we'll have, and we ran into a lot of enzyme bugs with them in the past (and depending on the config still do).
I think they are good to have around to learn about both Enzyme regressions and improvements.
If any of them fails after an llvm or rustc update, people can simply disable the specific one.

I have a safe and unsafe (ptr based) implementation for each, since they have quite a perf difference between them (unsafe usually being slower). They also can trigger quite different bugs in Enzyme.
For the same reason I'd love to also have a version around which uses libm instead of the rust builtin function, since the libm version gets vectorized better in some of these benchmarks, which again triggered different bugs in the past.

rust-lang/rust-project-goals#109 (comment)

r? @oli-obk

Edit: I probably want to change the folder structure, so that we have all the lib.rs on a higher level, so x.py test only runs them, and ignores the other dependent files. I'll look into it. fixed, I marked side files as ignore-aux.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 20, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 20, 2025

oli-obk is not on the review rotation at the moment.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-benchmark-tests branch from 5968770 to 78d8adf Compare November 21, 2025 00:30
@ZuseZ4 ZuseZ4 added the F-autodiff `#![feature(autodiff)]` label Nov 21, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-benchmark-tests branch from e29cd37 to 1fb0a0b Compare November 21, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-autodiff `#![feature(autodiff)]` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants